package com.benmei.ntlive.dto.ntmsg;

/**
 * Created by Peter on 2017/11/21.
 */
public final class NtHeader {
    private String ntApiVersion;     // API的版本号, "1.0.0",
    private long ntTimestamp;      // 接口调用时间戳（毫秒）, 1501060504,
    private String ntSignature;      // 签名。签名算法：ntTimestamp的值与字符串“nativetalk123”拼接，然后对拼接后的字符串进行MD5加密，加密后的密文即为NT-SignInfo,"679e64d27a46b0b756e9d17f3450cbf5",
    private int ntClientType;     // 客户端类型：1 手机app; 2 微信; 3 pad; 4 web; 5 PC客户端
    private int ntClientOSType;   // 客户端操作系统类型：1 Android; 2 IOS;
    private int ntClientRole;     // 1学生；2 老师
    private String ntToken;           // 用户登录标识，其值为用户登录成功后返回的token字段,"2a89bcd0-b870-41e9-86a1-81a33397925c"
    private String ntClientLanguage; // 客户端语言，可用的值为：zh-cn（简体中文）、en-us（英语-美国）
    private String action;             // 消息类型

    public final String getNtApiVersion() {
        return ntApiVersion;
    }

    public final void setNtApiVersion(String ntApiVersion) {
        this.ntApiVersion = ntApiVersion;
    }

    public final long getNtTimestamp() {
        return ntTimestamp;
    }

    public final void setNtTimestamp(long ntTimestamp) {
        this.ntTimestamp = ntTimestamp;
    }

    public final String getNtSignature() {
        return ntSignature;
    }

    public final void setNtSignature(String ntSignature) {
        this.ntSignature = ntSignature;
    }

    public final int getNtClientType() {
        return ntClientType;
    }

    public final void setNtClientType(int ntClientType) {
        this.ntClientType = ntClientType;
    }

    public final int getNtClientOSType() {
        return ntClientOSType;
    }

    public final void setNtClientOSType(int ntClientOSType) {
        this.ntClientOSType = ntClientOSType;
    }

    public final int getNtClientRole() {
        return ntClientRole;
    }

    public final void setNtClientRole(int ntClientRole) {
        this.ntClientRole = ntClientRole;
    }

    public final String getNtToken() {
        return ntToken;
    }

    public final void setNtToken(String ntToken) {
        this.ntToken = ntToken;
    }

    public final String getNtClientLanguage() {
        return ntClientLanguage;
    }

    public final void setNtClientLanguage(String ntClientLanguage) {
        this.ntClientLanguage = ntClientLanguage;
    }

    public final String getAction() {
        return action;
    }

    public final void setAction(String action) {
        this.action = action;
    }
}
